package com.example.wordapp.service.impl;

import com.example.wordapp.mapper.CommentsMapper;
import com.example.wordapp.pojo.Comments;
import com.example.wordapp.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentsIpm implements CommentsService {
    @Autowired
    private CommentsMapper commentsMapper;
    @Override
    public List<Comments> findAll() {
        return commentsMapper.findAll();
    }

    @Override
    public int addComment(Comments comment) {
        return commentsMapper.addComments(comment);
    }
}
